import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/login'
import Register from '@/views/register'
import Chart from '@/views/chart'
import PersonalCenter from '@/views/personalCenter'
import BusinessManage from '@/views/businessManage'
import Dlzl from '@/views/tabPage/dlzl'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/register',
      name: 'register',
      component: Register
    },
    {
      path: '/chart',
      name: 'chart',
      component: Chart
    },
    {
      path: '/personalCenter',
      name: 'personalCenter',
      component: PersonalCenter
    },
    {
      path: '/businessManage',
      name: 'businessManage',
      component: BusinessManage
    },
    {
      path: '/tabPage/dlzl',
      name: 'dlzl',
      component: Dlzl
    }
  ]
})
